class Goods:
    def __init__(self,name,price):
        self.name =name
        self.price = price


# 定义一个手机类
class Phone(Goods):
    def __init__(self, name, price, Memory, size):  # 内存 尺寸
        # super().__init__(name,price)
        super().__init__(name, price)
        self.name = name
        self.price = price
        # 扩展
        self.Memory =Memory
        self.size = size

phone =Phone("苹果13","6900","256g","7.2英寸")
print(phone.name)
print(phone.price)
print(phone.Memory)
print(phone.size)

